<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="/css/jpetstore.css" type="text/css" media="screen"/>
</head>
<body>
<div th:replace="common/Header :: header"></div>
<div id="Content">
<style type="text/css">
    .errormsg {
        color: red;
    }

    .okmsg {
        color: green;
    }
</style>
<div id="Catalog">

    <form action="/account/register" method="post">
        <h3>User Information</h3>
        <table>

            <tr>
                <td><label class="title" for="username">User ID:</label></td>
                <td><input type="text" name="username" id="username">
                    <span id="isExistInfo"></span></td>
            </tr>
            <tr>
                <td>New password:</td>
                <td><input type="password" name="password" id="password">
                    <span id="passwordAvailableInfo"></span></td>
            </tr>
            <tr>
                <td>Repeat password:</td>
                <td><input type="password" name="password2" id="password2">
                    <span id="repeatpassword"></span></td>
            </tr>
            <tr>
                <td>Birthday:</td>
                <td><input type="date" name="birthday"></td>

            </tr>
            <tr>
                <td colspan="2" align="center" th:text="${msg}">
                    <font color="red"></font><br>
                </td>
            </tr>

        </table>

        <div th:replace="account/ReplaceAccountFields2 :: replaceAccountFields2"></div>

        <input type="submit" name="newAccount" value="REGISTER">

        <script src="/js/UserCheck.js"></script>

    </form>
</div>
</div>
<div th:replace="common/Footer :: footer"></div>

</body>
</html>